# Django settings for the Murphy Task Manager
# Copyright (c) 2009 the murphy-tm team
#
# Based on the default Django settings.py file.
#
# This file and all the other files belonging to the MurphyTM project
# are distributed under the terms of the GNU General Public License v3.
# See the COPYING file for details.

# -- Modules needed by the settings module
import os

# -- Project directory
PROJECT_DIR = os.path.dirname(__file__)

# -- Debug settings (in production code those should be set to false
DEBUG = True
TEMPLATE_DEBUG = DEBUG

# -- Administrators 
ADMINS = (
     ('Damiano Bertuna', 'damianobertuna@gmail.com'),
     ('Andrea Spadaccini', 'a.spadaccini@diit.unict.it'),
)
MANAGERS = ADMINS

# -- Database configuration
DATABASE_ENGINE = 'sqlite3'
DATABASE_NAME = 'murphy-tm.db'
DATABASE_USER = ''
DATABASE_PASSWORD = ''
DATABASE_HOST = ''
DATABASE_PORT = ''

# -- Django configuration
INSTALLED_APPS = (
    'murphytm.tasks',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.admin',
)
MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
)
TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.load_template_source',
    'django.template.loaders.app_directories.load_template_source',
)
TEMPLATE_DIRS = (
    'templates',
)
TEMPLATE_CONTEXT_PROCESSORS = (
     'django.core.context_processors.auth',
     'django.core.context_processors.debug',
     'django.core.context_processors.i18n',
     'django.core.context_processors.media',
     'django.core.context_processors.request',
)
ROOT_URLCONF = 'murphytm.urls'
LOGIN_REDIRECT_URL = '/home/' 

# -- Media configuration
MEDIA_ROOT = ''
MEDIA_URL = ''
ADMIN_MEDIA_PREFIX = '/media/'
STATIC_DOC_ROOT = PROJECT_DIR + '/site_media'

# -- I18n and time zone
LANGUAGE_CODE = 'en-us'
USE_I18N = True
TIME_ZONE = 'Europe/Rome'

# -- SiteID and secret key
SITE_ID = 1
SECRET_KEY = '_gsd0004naz=52%uvn8d*uqjvhmx8$2pmcpo7qi^)1)y!ntwt$'

